package com.lzy.huijinjiazu.mvp.ui.activity;

import android.os.Bundle;
import android.widget.FrameLayout;

import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;
import com.lzy.huijinjiazu.R;
import com.lzy.huijinjiazu.di.component.DaggerGoodsDetailComponent;
import com.lzy.huijinjiazu.di.module.GoodsDetailModule;
import com.lzy.huijinjiazu.mvp.contract.GoodsDetailContract;
import com.lzy.huijinjiazu.mvp.presenter.GoodsDetailPresenter;

import butterknife.BindView;
import butterknife.ButterKnife;


public class GoodsDetailActivity extends BaseActivity<GoodsDetailPresenter> implements GoodsDetailContract.View {


    @BindView(R.id.fl_title)
    FrameLayout mFlTitle;

    @Override
    public void setupActivityComponent(AppComponent appComponent) {
        DaggerGoodsDetailComponent //如找不到该类,请编译一下项目
                .builder()
                .appComponent(appComponent)
                .goodsDetailModule(new GoodsDetailModule(this))
                .build()
                .inject(this);
    }

    @Override
    public int initView(Bundle savedInstanceState) {
        return R.layout.activity_goods_detail; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
    }

    @Override
    public void initData(Bundle savedInstanceState) {

    }

    @Override
    protected void initImmersionBar() {
        super.initImmersionBar();
        mImmersionBar.statusBarColor(R.color.goods_detail_status_bar).init();
        mImmersionBar.setTitleBar(this, mFlTitle);
    }

}
